package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Invoice;
import cn.itcast.domain.cargo.InvoiceExample;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface InvoiceService {

    PageInfo<Invoice> findAllByPage(InvoiceExample example,Integer pageNum,Integer pageSize);

    void save(Invoice invoice);

    void delete(String id);

    void updateByKey(Invoice invoice);

    Invoice selectByPrimaryKey(String id);

    Invoice toAdd(String id);

    Map<String,Boolean> safeToDelete(String id);
}
